<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/jquery.min.js"></script>
</head>
<body>
	<%-- 
	<h1>测试常用注解</h1>
	<h3>请求参数注解1</h3>
	<a href="anno/param?stname=fix">请求参数注解1</a>
	
	<h3>请求体注解2</h3>
	<form action="anno/body" method="get">
		addr:<input type="text" name="addr" /><br>
		phone:<input type="text" name="phone" /><br>
		<input type="submit" value="登录" />
	</form>
	
	<h3>路径变量 注解3</h3>
	<a href="anno/pathvar/计科二班/2020">路径变量</a>
	
	
	<h3>自定义请求头 加个token数据</h3>
	<button>send</button>
	<script type="text/javascript">
		$(function(){
			$("button").click(function(){
				//alert("ok");
				$.ajax({
					type:"GET",
					url:"anno/header",
					headers:{'token':"asdjfjsdkj654651s3df46"}
				});
				
			});
		});
	</script>
	--%>
	<h3>modelAtribute</h3>
	<form action="anno/objattibute" method="post">
		addr:<input type="text" name="addr" /><br>
		phone:<input type="text" name="phone" /><br>
		<input type="submit" value="登录" />
	</form>
</body>
</html>